package com.smartfactory.sail.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smartfactory.sail.entity.PurchaseRecord;
import com.smartfactory.sail.vo.purchase.StatisticsPurchaseByCustResp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 采购单明细 Mapper 接口
 * </p>
 *
 * @author 王巨壁
 * @since 2019-08-20
 */
@Mapper
public interface PurchaseRecordMapper extends BaseMapper<PurchaseRecord> {

    List<StatisticsPurchaseByCustResp> getStatisticsPurs(@Param("custId")Long custId);

    BigDecimal getLastPrice(@Param("itemId") Long itemId);
}
